<?php
/**
 * Cette page sert à prendre les 7 dernières images du partenaires Disney Dreams
 * 
 * @author Scrooge
 * @since ??
 * @version 1.1
 * 
 * Depuis la version 1.1 la requete SQL utilise le dbal.
 * 
 */
if (!defined('IN_PHPBB') || !defined('IN_PORTAL'))
{
   exit;
}

//affichage des images
$dream_pic = "SELECT * FROM dmi_partner_ddreams ORDER BY RAND() LIMIT 7";
$requete = $db->sql_query($dream_pic);
while($dream_pic = $db->sql_fetchrow($requete))
{
	$template->assign_block_vars('dream',array(
		"DREAM_IMAGE" 	=> $dream_pic['picdream'],
	));
}	
$db->sql_freeresult();
?>